<?php
/* @var $this ProductController */

$this->breadcrumbs = array(
    'Product' => array('/product'),
    'Detail',
);
$baseUrl = Yii::app()->request->baseUrl;
$this->pageTitle = 'Product detail - '.$model->name;
?>
<div class="row">
    <div class="row-content">
        <div class="main-container">
            <div class="top-image">
                <? echo CHtml::image($baseUrl . '/protected/uploads/images/products/' . $model->image, $model->name . ' picture') ?>                </div>
            <div class="top-content">
                <h1>
                    <? echo $model->name ?></h1>
                <h2 class="feature">
                    Highlights:</h2>
                <? echo $model->highlight ?>
            </div>
        </div>
    </div>
    <div class="row-content pageTitle ">
        <ul>
            <li><a href="<?echo Yii::app()->request->baseUrl?>/">Home page</a> &gt;</li>
            <li><a href="<? echo $this->createUrl('index')?>">Products</a> &gt;</li>
            <li><? echo $model->cat->name ?></li>
        </ul>
        <h1>
            <? echo $model->name ?></h1>
    </div>
</div>
<div class="row light-gray">
    <div class="exception-tab maxTab6">
        <ul>
            <li class="<? echo ($view == 0) ? 'active' : '' ?>"><? echo CHtml::link('Overview', $baseUrl . '/product/detail/' . $model->id . '?view=overview') ?></li>
            <li class="<? echo ($view == 1) ? 'active' : '' ?>"><? echo CHtml::link('Features', $baseUrl . '/product/detail/' . $model->id . '?view=feature') ?></li>
            <li class="<? echo ($view == 2) ? 'active' : '' ?>"><? echo CHtml::link('Specifications', $baseUrl . '/product/detail/' . $model->id . '?view=specification') ?></li>
            <li class="last <? echo ($view == 3) ? 'active' : '' ?>"><? echo CHtml::link('Downloads', $baseUrl . '/product/detail/' . $model->id . '?view=download') ?></li>
        </ul>
    </div>
</div>
<div class="row light-gray">
    <div class="detailBox">
        <?
        switch ($view) {
            case 1: echo $model->features;
                break;
            case 2: echo $model->specifications;
                break;
            case 3: echo $model->downloads;
                break;
            default: echo $model->overview;
                break;
        }
        echo Yii::app()->request->pathInfo;
        ?>
    </div>
</div>
